From: Vlad Yasevich Date: Thu, 22 Mar 2007 19:26:25 +0000 (-0700) Subject: [SCTP]: Correctly reset ssthresh when restarting association X-Git-Tag: archive/raspbian/4.9.13-1+rpi1~10^2~38966^2~3 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=289f42492c0958871b6045050474c752ec99704f;p=linux-4.9.git [SCTP]: Correctly reset ssthresh when restarting association Reset ssthresh to the correct value (peer's a_rwnd) when restarting association. Signed-off-by: Vlad Yasevich Signed-off-by: David S. Miller --- diff --git a/net/sctp/transport.c b/net/sctp/transport.c index c4699f5c409d..4d8c2ab864fc 100644 --- a/net/sctp/transport.c +++ b/net/sctp/transport.c @@ -538,7 +538,7 @@ void sctp_transport_reset(struct sctp_transport *t) * (see Section 6.2.1) */ t->cwnd = min(4*asoc->pathmtu, max_t(__u32, 2*asoc->pathmtu, 4380)); - t->ssthresh = SCTP_DEFAULT_MAXWINDOW; + t->ssthresh = asoc->peer.i.a_rwnd; t->rto = asoc->rto_initial; t->rtt = 0; t->srtt = 0;